﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace XYX.Http.Host
{
    /// <summary>
    /// 
    /// </summary>
    public class Resolver
    {
        /// <summary>
        /// 实例类型
        /// </summary>
        public Type InstanceType { get; set; }

        /// <summary>
        /// 获取实例
        /// </summary>
        /// <returns></returns>
        public object GetHandlerInstance()
        {
            return Activator.CreateInstance(InstanceType);
        }
    }
}
